/**
 * 严肃声明：
 * 开源版本请务必保留此注释头信息，若删除我方将保留所有法律责任追究！
 * 本系统已申请软件著作权，受国家版权局知识产权以及国家计算机软件著作权保护！
 * 可正常分享和学习源码，不得用于违法犯罪活动，违者必究！
 * Copyright (c) 2020 陈尼克 all rights reserved.
 * 版权所有，侵权必究！
 */

@import "./base.less";
@primary: #1baeae; // 主题色
@orange: #ff6b01;
@bc: #f0f2f5;
@fc: #fff;
@defaultc: #2e3f6a;

// 背景图片地址和大小
.bis(@url) {
  background-image: url(@url);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

// 圆角
.borderRadius(@radius) {
  -webkit-border-radius: @radius;
  -moz-border-radius: @radius;
  -ms-border-radius: @radius;
  -o-border-radius: @radius;
  border-radius: @radius;
}

// 1px底部边框
.border-1px(@color) {
  position: relative;
  &:after {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid @color;
    content: "";
  }
}
// 定位全屏
.allcover {
  position: absolute;
  top: 0;
  right: 0;
}

// 定位上下左右居中
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

// 定位上下居中
.ct {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

// 定位左右居中
.cl {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

// 宽高
.wh(@width, @height) {
  width: @width;
  height: @height;
}

// 字体大小，颜色
.sc(@size, @color) {
  font-size: @size;
  color: @color;
}

.boxSizing {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

// flex 布局和 子元素 对其方式
.fj(@type: space-between) {
  display: flex;
  justify-content: @type;
}

.noPadding {
  padding: 0;
}

.btn-group {
  .fj();
  .cus-btn {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #2e3f6a;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    transition: 0.1s;
    font-weight: 400;
    width: 108px;
    height: 40px;
    font-size: 15px;
    border-radius: 7px;
  }
  .btn-primary {
    color: @fc;
    background: linear-gradient(90deg, #206dec, #359eff);
  }
  .btn-success {
    color: @fc;
    background: linear-gradient(90deg, #00b6c8, #3ad8e7);
  }
  .btn-warning {
    color: @fc;
    background: linear-gradient(90deg, #ff8400, #ffba35);
  }
}

.card-box {
  .card-item {
    background-color: @fc;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    .card-header {
      font-size: 16px;
      font-weight: bold;
      padding: 13px 14px 0;
    }
    .card-body {
      padding: 12px 14px 16px;
    }
    .card-body-nop {
      padding: 0;
    }
  }
}

.field-item {
  min-height: 30px;
  padding: 10px 16px;
  .field-label {
    text-align: right;
    vertical-align: middle;
    float: left;
    font-size: 14px;
    color: #606266;
    line-height: 40px;
    box-sizing: border-box;
  }
  .field-value {
    line-height: 40px;
    position: relative;
    font-size: 14px;
  }
}

.tag-group {
  .tag {
    background-color: #ecf5ff;
    display: inline-block;
    height: 32px;
    padding: 0 10px;
    line-height: 30px;
    font-size: 12px;
    color: #409eff;
    border: 1px solid #d9ecff;
    border-radius: 4px;
    box-sizing: border-box;
    white-space: nowrap;
    margin-left: 10px;

    .tag-close {
      border-radius: 50%;
      text-align: center;
      position: relative;
      cursor: pointer;
      font-size: 12px;
      height: 16px;
      width: 16px;
      line-height: 16px;
      vertical-align: middle;
      top: -1px;
      right: -5px;
    }
  }
  .tag:nth-child(1) {
    margin-left: 0;
  }
}

.cell-box {
  padding-bottom: 10px;
  .cell {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 16px;
    overflow: hidden;
    color: #323233;
    font-size: 13px;
    line-height: 24px;
    background-color: #fff;
  }
  .cell::after {
    position: absolute;
    box-sizing: border-box;
    content: " ";
    pointer-events: none;
    right: 16px;
    bottom: 0;
    left: 16px;
    border-bottom: 1px solid #ebedf0;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
  }
}

.van-divider {
  margin: 10px 0 0;
}

.header-num {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  .page-num {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    background-color: #3487f6;
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    margin-right: 10px;
    border-radius: 50%;
  }
  .page-title {
    font-size: 17px;
    font-weight: bold;
  }
  .plan {
    font-size: 13px;
    font-weight: 400;
    line-height: 30px;
  }
}
